import React, {useEffect} from 'react';
import {useRoutes, useNavigate} from 'react-router-dom';
import routes from './router';
function App() {
    const navigate = useNavigate();
    useEffect(() => {
        navigate('/dashboard');
    }, []);
    return useRoutes(routes);
}

export default App;
